<?php echo '<?xml version="1.0" encoding="UTF-8" ?>';?>

<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
    <title><?php echo $this->title; ?></title>
    <description><?php echo $this->description; ?></description>
    <link><?php echo $this->websiteUrl; ?>products.xml</link>

    <?php foreach ($this->products as $product): ?>

        <item>
            <title><?php echo $product['title'];?></title>
            <link><?php echo $product['link'];?></link>
            <description><?php echo $product['description'];?></description>
            <g:id><?php echo $product['id'];?></g:id>
            <g:price><?php echo $product['price'];?></g:price>
            <g:condition><?php echo $product['condition'];?></g:condition>
            <g:brand><?php echo $product['brand'];?></g:brand>
            <g:image_link><?php echo $product['image_link'];?></g:image_link>
        </item>

    <?php endforeach; ?>
    
</channel>
</rss>